* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 800px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    overflow: hidden;
}

.game-header {
    background-color: #2a2a2a;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #00ff00;
}

.game-header h1 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-around;
    font-size: 1.2em;
}

.game-info div {
    background-color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #00ff00;
}

.game-info span {
    color: #00ff00;
    font-weight: bold;
}

.game-area {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #0a0a0a;
}

#gameCanvas {
    border: 3px solid #00ff00;
    border-radius: 5px;
    background-color: #111;
    max-width: 100%;
    height: auto;
}

.game-controls {
    background-color: #2a2a2a;
    padding: 20px;
    border-top: 2px solid #00ff00;
}

.control-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 25px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #00ff00;
    color: #0a0a0a;
}

.btn-primary:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.btn-secondary {
    background-color: #333;
    color: #00ff00;
    border: 1px solid #00ff00;
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.mobile-controls {
    display: none;
    justify-content: space-around;
    margin-top: 20px;
}

.joystick-area {
    position: relative;
    width: 120px;
    height: 120px;
}

.joystick {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.5);
    border-radius: 50%;
    border: 2px solid #00ff00;
}

.joystick-inner {
    position: absolute;
    width: 40%;
    height: 40%;
    background-color: #00ff00;
    border-radius: 50%;
    top: 30%;
    left: 30%;
    cursor: grab;
}

.joystick-inner:active {
    cursor: grabbing;
}

.fire-area {
    display: flex;
    align-items: center;
}

.fire-button {
    width: 80px;
    height: 80px;
    background-color: #ff3333;
    border: none;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.fire-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.fire-button:active {
    transform: scale(0.95);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #00ff00;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 2em;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.modal-content span {
    color: #00ff00;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2em;
    }
    
    .game-info {
        font-size: 1em;
    }
    
    .mobile-controls {
        display: flex;
    }
}

@media (max-width: 480px) {
    .game-container {
        margin: 0;
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .game-header {
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 1.5em;
    }
    
    .game-area {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 10px;
    }
    
    .modal-content {
        margin: 20px;
    }
}